package com.financing.wap.dao.impl;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IOrderTmpDao;
import com.financing.wap.dto.OrderTmpDTO;

@Repository("orderTmpDaoImpl")
public class OrderTmpDaoImpl extends BaseDaoImpl<OrderTmpDTO, java.lang.Integer> implements IOrderTmpDao {

	@Override
	public String addOrderTmp(OrderTmpDTO dto) {
		dto.setId((String)this.sqlMapClientTemplate.queryForObject(SqlName.queryUUID));
		this.sqlMapClientTemplate.insert(SqlName.ADD_ORDER_TMP, dto);
		return dto.getId();
	}

	@Override
	public Class<OrderTmpDTO> getEntityClass() {
		return OrderTmpDTO.class;
	}
}
